Fixed Gasperotti's bugs 20141011, 20141012 e 20141013