Fixed submit resource button submit bug