Fixed bugs on time entries controller