Fixed implicit type bug