Fixed mistake by me caused by fixing type casts earlier