Fixed double execution of controllers: http://stackoverflow.com/a/15535724/981043