fixed rake:dinesafe buggy logic