fixing some tupid mistakes made in the last commit