fixed type issue by Thorsten Kracht