It smells like Yor're calling over and over the maintenance action defined in ApplicationController. Probably the 'maintenance' action which is replying in static controller is the one defined in ApplicationController and not the one you expect. breakpoint'll be your friend.
Paolo