Fixed stupid type bug