Fixed bug when floating point shape