fixing kernel dtype bug (#13)