Fixed mass boundary bug