Arrumei alguns problemas que tinha na versao anterior