Platform correction

Added parameters to rect