fixed cube bug