fixed origin not allowed bug