spalling error fixed