fix portal 2 mws code